on Sync Server
Registers a listener to the global onSyncServer
event. This will be fired on the logical server when a config is about to be synced to clients.
This occurs when the player logs in or datapacks are reloaded.
Author
fzzyhmstrs
Since
0.5.0
Parameters
listener
OnSyncServerListener callback that is fired when any config is synced on the server side. This can be used to inspect other configs, not just your own.
See also
A direct-implementation option for inspecting your own config on sync.